package zuoye02;

public class Main {
    public static void main(String[] args) {
        Polygon a =new Polygon(3);
        System.out.println(a.toString());
        a.getNumberOfSides();

        Triangle b = new Triangle(5,10);
        System.out.println(b);
        b.getArea();
        System.out.println("三角形的面积为：" + b.getArea());
    }
}
